var depot = {

	depot : null,

	init : function() {
		this.depot = new Mojo.Depot( {
			name : Mojo.Controller.appInfo.id,
			replace : false
		}, this.doNothing, this.reportError);
	},

	doNothing : function() {

	},

	reportError : function(code) {
		Mojo.Log.error("Depot failed:" + code);
	},

	get : function(param, callback) {
		this.depot.get(param, callback, this.reportError);
	},
	
	add : function(param, value) {
		this.depot.add(param, value, this.doNothing, this.reportError);
	},
	
	removeAll : function() {
		this.depot.removeAll(this.doNothing, this.reportError);
	},
	
	discard : function(param) {
		this.depot.discard(param, this.doNothing, this.reportError);
	},
	
	getVersion : function(callback) {
		this.get("version", callback);
	},
};